http = require "http"
fs = require "fs"

port = 8000
file_path = process.argv[2]

server = http.createServer (req, res) ->
  file_stream = fs.createReadStream(file_path)
  file_stream.pipe(res)

server.listen(port)
